package com.framework.modules.live.service;

import com.baomidou.mybatisplus.service.IService;
import com.framework.common.utils.PageUtils;
import com.framework.modules.live.entity.LiveRoomEntity;

import java.util.Map;

/**
 * 直播室信息 
 *
 * @author MIT
 * @email litmiss@gmail.com
 * @date 2020-10-29 12:31:54
 */
public interface LiveRoomService extends IService<LiveRoomEntity> {
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 累计用户直播的时间
     * @param seconds
     * @param uid
     * @return
     */
    Integer updateStreamEndLiveRoom(Integer seconds, Integer stopTime,Integer state, Integer uid);

    /**
     * 查询直播详情
     * @return
     */
    Object findLiveInfo(Integer uid);
}

